package com.usian.consumerlogin.feign;

import com.usian.consumerlogin.pojo.Consumer;
import com.usian.consumerlogin.pojo.Result;
import com.usian.model.RaceTeam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("day14Access")
public interface FeignConsumer {
    @RequestMapping("consumer/consumerLogin")
    Result userLogin(@RequestBody Consumer consumer);
    @RequestMapping("team/TeamFindAll")
    Result TeamFindAll();
    @RequestMapping("team/addRaceTeam")
    void addRaceTeam(@RequestBody RaceTeam raceTeam);

    @RequestMapping("team/raceTeambyOne")
    Result raceTeambyOne(@RequestBody RaceTeam raceTeam);

    @RequestMapping("raceTeam/raceTeamById")
    Result raceTeamById(@RequestBody RaceTeam raceTeam);
}
